package com.dt76.smallloanfrontenduser.remote.linte;

import com.dt76.smallloanfrontenduser.pojo.linte.RepaymentInfo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "smallloan-Frontend-Service")
public interface RepaymentRemote {

    @RequestMapping("/getList")
    List<RepaymentInfo> getList(@RequestParam("userId") Integer userId);

    @RequestMapping("/doneRep")
    Integer doneRep(@RequestParam("repId") Integer repId);

}